package dao;

import entity.Print;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.awt.print.Printable;

public class HelloSpring {
//    public HelloSpring(String who,String shui){
////        this.who=who;
////        this.shui=shui;
////    }
    //定义who属性，该属性的值将通过Spring框架进行设置
    private  String who=null;

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who;
    }

    public String getShui() {
        return shui;
    }

    public void setShui(String shui) {
        this.shui = shui;
    }

    private  String shui=null;
    /**
     * 定义打印方法，输出一句完整的问候
     */
    public  void print(){
        System.out.println(this.who+"说"+this.shui);
    }

}
